<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>

	<body>
	</body>
	<script>
		//类式继承
		//声明父类
		function SuperClass() {
			this.SuperValue = true;
		}
		//为父类添加共有方法
		SuperClass.prototype.getSuperValue = function() {
			return this.superValue;
		};
		//声明子类
		function SubClass() {
			this.subValue = false;
		}
		//继承父类
		SubClass.prototype = new SuperClass();
		//为子类添加共有方法
		SubClass.prototype.getsubValue = function() {
			return this.subValue;
		}
	</script>

</html>